<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var heros = [
            ["关二哥","环眼贼","白马长枪龙哥","马孟起","忠哥"],
            ["撅屁股的宋三郎","河北玉麒麟","大阴人智多星没鸟用"],
            ["李元霸","宇文成都","裴元庆"]
        ]
        // console.log(heros[1][2]);
        heros[1][2] = "智多星无用"

        /* 遍历二维数组 */
        for(var i=0;i<heros.length;i++){
            // console.log(heros[i]);
            // var arr = heros[i]

            /* 遍历内层数组 */
            for(var j=0;j<heros[i].length;j++){
                console.log(heros[i][j]);
            }
        }
    </script>
</body>

</html>